﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunctionLib.Single
{
    public class SampleFunction : IFunction
    {
        public string Name => "SingleSample";

        public int MinParam => 1;

        public int MaxParam => 1;

        public object Calc(params object[] param)
        {
            double d = (double)param[0];
            Random rad = new Random();
            return rad.Next(10) * d;
        }
    }
}
